#include <iostream>

using namespace std;
class Animal{
    public:
    Animal(){
        cout<<"动物类"<<endl;
    }
    void eat()
	{
		cout<<"动物吃"<<endl;
	}
    private:
    double Age;
};
class Cat:virtual public Animal{
    public:
    Cat(){
        cout<<"猫类继承动物类"<<endl;
    }
    private:
    int age;
};
class boSiCat:virtual public Animal{
    public:
    boSiCat(){
        cout<<"波斯猫继承动物类"<<endl;
    }
    private:
    double name;
};
class jaFeiCat: public Cat,public boSiCat{
    public:
    jaFeiCat(){
        cout<<"波斯猫双重继承猫类和波斯猫类"<<endl;
    }
    private:
    double name;
};
int main(int argc, char const *argv[])
{
    jaFeiCat C1;
    C1.eat();
    return 0;
}
